package com.lr.wfxmanager.permission.bean;

import com.lr.wfxmanager.permission.bean.PermissionState;

import java.util.List;

public class ParentFunctree {
    //页面生成树状,只需要这两个参数
    private String text;//父标签
    private String href;//链接
    private List<ChildFunctree> nodes;//子标签
    private PermissionState state;//父权限是否勾选
    private Integer fid;//父角色权限id
    private String moduleCode;//父modulecode

    public String getModuleCode() {
        return moduleCode;
    }

    public void setModuleCode(String moduleCode) {
        this.moduleCode = moduleCode;
    }

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public PermissionState getState() {
        return state;
    }

    public void setState(PermissionState state) {
        this.state = state;
    }

    public ParentFunctree() {
    }

    public ParentFunctree(String text, String href, List<ChildFunctree> nodes) {
        this.text = text;
        this.href = href;
        this.nodes = nodes;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public List<ChildFunctree> getNodes() {
        return nodes;
    }

    public void setNodes(List<ChildFunctree> nodes) {
        this.nodes = nodes;
    }

    @Override
    public String toString() {
        return "ParentFunctree{" +
                "text='" + text + '\'' +
                ", href='" + href + '\'' +
                ",fid="+fid+
                ", nodes=" + nodes +
                ", state=" + state +
                ", moduleCode='" + moduleCode + '\'' +
                '}';
    }
}
